#ifndef SAMPLEUPLOADERPLUGIN_H
#define SAMPLEUPLOADERPLUGIN_H
#include <AbstractUploader.h>
#include "SampleUploader.h"

class SampleUploaderPlugin : public AbstractUploader {
Q_OBJECT
Q_INTERFACES(uploadPluginClass)
public:
	SampleUploaderPlugin();
protected:
	virtual UploadWorker* newUploadWorker() {
		return new SampleUploader(this, getNetManager(), Hosting);
	}
	void authorizeAndUpload();
private slots:
	void authReqFinished();
	void sAuthError(QNetworkReply::NetworkError);
	void authSecondStep();
private:
	bool authorizedAlready;
	QNetworkReply *mainPage;
	QNetworkReply *verifyPage;
};
#endif // SAMPLEUPLOADERPLUGIN_H
